<template>
	<view class="add">
		<view class="input">
			<textarea value="" v-model="content" maxlength="-1" auto-height="" placeholder="请填写反馈内容" />
		</view>
		
		<view class="radius-btn" @tap="submitForm()">提交</view>
	</view>
</template>

<script>
	import Request from '../../common/request.js';
	
	export default {
		data() {
			return {
				content: ''
			};
		},
		methods: {
			submitForm:function(){
				if(!this.content) {
					Request.alert('请填写反馈内容');
					return;
				}
				var that = this;
				Request.send({
					url: 'feedback/add',
					data: {
						content: that.content
					},
					sCallback: function(res) {
						uni.showToast({
							title: res.msg,
							success() {
								uni.navigateBack({
									
								})
							}
						})
					}
				})

			}
		}
	}
</script>

<style>
	.add{
		font-size: 28upx;
	}
	
	.input{
		padding: 20upx;
	}
	
	.input textarea{
		background: #fff;
		width: 100%;
		padding: 20upx;
		box-sizing: border-box;
	}
</style>
